package Code.ExtendDemo.Test3;

public class Manager extends Employee {
    private  int bons;

    public Manager() {
        super();
    }

    public Manager(int bons) {
        this.bons = bons;
    }

    public Manager(String id, String name, int salary, int bons) {
        super(id, name, salary);
        this.bons = bons;
    }

    public int getBons() {
        return bons;
    }

    public void setBons(int bons) {
        this.bons = bons;
    }

    @Override
    public void wwork() {
        System.out.println(super.getName()+"管理其他人");
    }
}
